package com.cskaoyan.shopping.service.remote;

import com.cskaoyan.mall.api.PromoProductService;
import com.cskaoyan.mall.dto.ProductDetailRequest;
import com.cskaoyan.mall.dto.ProductDetailResponse;
import com.cskaoyan.shopping.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 牟治宇
 * @description 秒杀服务
 * @date: 2022/8/6 12:01
 */

@RestController
public class PromoProductServiceImpl implements PromoProductService {

    @Autowired
    IProductService iProductService;

    @Override
    public ProductDetailResponse getProductDetail(ProductDetailRequest request) {
        return iProductService.getProductDetail(request);
    }
}
